package com.tiger.security.sample3;

import javax.ejb.*;
import javax.naming.*;

public class Security3TestBean implements javax.ejb.SessionBean {
    private javax.ejb.SessionContext sessionContext = null;
    
    public void setSessionContext(javax.ejb.SessionContext sessionContext) {
        this.sessionContext = sessionContext;
    }
    
    public void ejbCreate() {}
    
    public String method1() {
        return "Called method1. Principal is " + 
            sessionContext.getCallerPrincipal().getName() + ".";
    }
    
    public void ejbActivate() {}
    
    public void ejbPassivate() {}
    
    public void ejbRemove() {}
}
